package com.wangyg.juc.consumer;

import java.util.List;

/**
 * Created by wangyg6 on 2018/7/4.
 */
public class Test {
	public static void main(String[] args) {
	/*	int j = 0;
		for (int i = 1; i <= 131; i++) {
			if (String.valueOf(i).contains("1")) {
				j++;
			}

		}
		System.out.println(j);*/
	/*	Object buyer = new Object();
		Object maker=new Object();
		BlockingQueue<String> bq = new ArrayBlockingQueue<>(100);
		BreadBuyer breadBuyer = new BreadBuyer("Buyer").setBq(bq);
		BreadMaker breadMaker = new BreadMaker("Maker").setBq(bq);

		breadMaker.start();
		breadBuyer.start();*/

	/*	String a = new String("123");
		String b = a;
		a = "456";
		if (a == b) {
			System.out.println(1);
		}
		if (a.equals(b)) {
			System.out.println(2);
		}
		System.out.println(3);
		System.out.println(b);*/
				System.out.println(xx());
	}

	public static Boolean xx() {
		try {
			List<Object> array = null;
			System.out.println(array.size());
			return false;

		} catch (Exception e) {
			System.out.println("error");
			return false;
		} finally {
			System.out.println("finally");
			return true;
		}
	}

}
